//
//  MyTextField.swift
//  WineDeliver
//
//  Created by xiaozhi on 15/8/11.
//  Copyright (c) 2015年 zhixiao. All rights reserved.
//

import UIKit

class MyTextField: UITextField {

    /*
    // Only override drawRect: if you perform custom drawing.
    // An empty implementation adversely affects performance during animation.
    override func drawRect(rect: CGRect) {
        // Drawing code
    }
    */
    override func leftViewRectForBounds(bounds: CGRect) -> CGRect {
        var rect = super.leftViewRectForBounds(bounds)
        rect.origin.x += 10
        return rect
    }
    override func textRectForBounds(bounds: CGRect) -> CGRect {
        var rect = super.textRectForBounds(bounds)
        rect.origin.x += 10
        return rect
    }
    override func editingRectForBounds(bounds: CGRect) -> CGRect {
        var rect = super.textRectForBounds(bounds)
        rect.origin.x += 10
        return rect
    }
    
}
